package heima.lm.oschina.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import heima.lm.oschina.R;
import heima.lm.oschina.bean.Active;
import heima.lm.oschina.utils.UIUtils;

/**
 * Created by xiguoqiang on 2017/4/8.
 */

public class AboutMeAdapter extends BaseRecyclerViewAdapter {

    public AboutMeAdapter(List list) {
        super(list);
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View itemView = LayoutInflater.from(UIUtils.getContext()).inflate(R.layout.itemmsg,null,false);
        return new AboutMeViewHolder(itemView);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        super.onBindViewHolder(holder, position);
        AboutMeViewHolder aboutMeViewHolder = (AboutMeViewHolder) holder;
        Active active = (Active) mList.get(position);

    }
    public class AboutMeViewHolder extends RecyclerView.ViewHolder {
        @BindView(R.id.iv_msg_user_face)
        ImageView mImageView;
        @BindView(R.id.tv_user_msg_name)
        TextView username;
        @BindView(R.id.tv_msg_date)
        TextView date;
        @BindView(R.id.tv_use_state)
        TextView userstate;
        @BindView(R.id.tv_msg_details)
        TextView msgdetails;
        @BindView(R.id.tv_device_info)
        TextView deviceplatfom;

        public AboutMeViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this,itemView);
        }
    }

}
